package com.indexingsystem.boss.entity;

import java.io.Serializable;

/**
 * 分馆栏目关系实体.
 * 
 * @author Administrator
 *
 */
public class PavilionMenuRelations implements Serializable {
	/**
	 * 序列化.
	 */
	private static final long serialVersionUID = -6434222750448914206L;

	private String pavilionMenuId;

	private String pavilionId;

	private String pavilionName;

	private String menuId;

	private String menuName;

	public String getPavilionMenuId() {
		return pavilionMenuId;
	}

	public void setPavilionMenuId(String pavilionMenuId) {
		this.pavilionMenuId = pavilionMenuId == null ? null : pavilionMenuId.trim();
	}

	public String getPavilionId() {
		return pavilionId;
	}

	public void setPavilionId(String pavilionId) {
		this.pavilionId = pavilionId == null ? null : pavilionId.trim();
	}

	public String getPavilionName() {
		return pavilionName;
	}

	public void setPavilionName(String pavilionName) {
		this.pavilionName = pavilionName == null ? null : pavilionName.trim();
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId == null ? null : menuId.trim();
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName == null ? null : menuName.trim();
	}	

	@Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((menuId == null) ? 0 : menuId.hashCode());
        result = prime * result + ((menuName == null) ? 0 : menuName.hashCode());
        result = prime * result + ((pavilionId == null) ? 0 : pavilionId.hashCode());
        result = prime * result + ((pavilionMenuId == null) ? 0 : pavilionMenuId.hashCode());
        result = prime * result + ((pavilionName == null) ? 0 : pavilionName.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        PavilionMenuRelations other = (PavilionMenuRelations)obj;
        if (menuId == null)
        {
            if (other.menuId != null) return false;
        }
        else if (!menuId.equals(other.menuId)) return false;
        if (menuName == null)
        {
            if (other.menuName != null) return false;
        }
        else if (!menuName.equals(other.menuName)) return false;
        if (pavilionId == null)
        {
            if (other.pavilionId != null) return false;
        }
        else if (!pavilionId.equals(other.pavilionId)) return false;
        if (pavilionMenuId == null)
        {
            if (other.pavilionMenuId != null) return false;
        }
        else if (!pavilionMenuId.equals(other.pavilionMenuId)) return false;
        if (pavilionName == null)
        {
            if (other.pavilionName != null) return false;
        }
        else if (!pavilionName.equals(other.pavilionName)) return false;
        return true;
    }

    public PavilionMenuRelations() {
		super();
	}

	public PavilionMenuRelations(String pavilionMenuId, String pavilionId, String pavilionName, String menuId,
			String menuName) {
		super();
		this.pavilionMenuId = pavilionMenuId;
		this.pavilionId = pavilionId;
		this.pavilionName = pavilionName;
		this.menuId = menuId;
		this.menuName = menuName;
	}

	@Override
	public String toString() {
		return "PavilionMenuRelations [pavilionMenuId=" + pavilionMenuId + ", pavilionId=" + pavilionId
				+ ", pavilionName=" + pavilionName + ", menuId=" + menuId + ", menuName=" + menuName + "]";
	}
}